package com.example.nacosConsumer.fallback;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * 消费者服务接口 降级工厂方法
 */
@Component
public class ConsumerServiceFallbackFactory implements FallbackFactory<ConsumerServiceFallback> {
    @Override
    public ConsumerServiceFallback create(Throwable throwable) {
        return new ConsumerServiceFallback(throwable);
    }
}
